package tony.web.filter

import org.springframework.boot.web.servlet.filter.OrderedFilter
import org.springframework.core.PriorityOrdered
import org.springframework.web.cors.CorsConfigurationSource
import org.springframework.web.filter.CorsFilter

/**
 * OrderedCorsFilter is
 * @author tangli
 * @date 2025/11/19 17:21
 */
public class OrderedCorsFilter(
    configSource: CorsConfigurationSource,
) : CorsFilter(configSource),
    PriorityOrdered {
    override fun getOrder(): Int =
        OrderedFilter.REQUEST_WRAPPER_FILTER_MAX_ORDER - 104
}
